package com.gagan.tplmatcher;

/**
 * @author gagan.goku@gmail.com
 */
public class MatchResult {
  public int start;
  public int end;
  public String data;
  public int patternIdx;

  public MatchResult(int start, int end, String html, int patternIdx) {
    this.start = start;
    this.end = end;
    if (start >= 0 && end >= 0) {
      data = html.substring(start, end);
    }
    this.patternIdx = patternIdx;
  }
}
